home *** CD-ROM | disk | FTP | other *** search
- /* prototypes for this application */
- #ifndef __ORIPROTOS__
- #define __ORIPROTOS__
- /* prototypes for this file */
-
- void AddWindowID(WindowPtr theWindow);
- void AdjustMenus(void);
- void InitalizeApp(void);
- void DoDiskEvents(long dinfo); /* hi word is error code, lo word is drive number */
- void DrawMain(WindowPtr drawIt);
- Boolean DoSelected(long val);
- void SizeMain(WindowPtr theWindow);
- void InitAEStuff(void);
- void DoHighLevel(EventRecord *AERecord);
- void DoDaCall(MenuHandle themenu, long theit);
- void DoDocumentClick(WindowPtr theWindow);
- Boolean IsMyWindow(WindowPtr theWind);
- OSErr FindAProcess(OSType creatorToFind, ProcessSerialNumberPtr processSN);
- OSErr FindOrLaunchAProcess(OSType theSig, AEDesc *theAddress);
- pascal OSErr AEOpenHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
- pascal OSErr AEOpenDocHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
- pascal OSErr AEPrintHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
- pascal OSErr AEQuitHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
- pascal OSErr AEAnswerHandler(AppleEvent *messagein, AppleEvent *reply, long refIn);
- WindowPtr FindWindowByID(unsigned long askedID);
- pascal Boolean CommonIdleFunction(EventRecord *whatEvent, long *sleeping, RgnHandle *mouseRgn);
- void SampleHelpDialog(void);
- void ReDrawGridLines(WindowPtr theWindow, ListHandle theList);
- WindowPtr AddNewWindow(short theID);
- void CloseTheWindow(WindowPtr theWindow);
- ControlHandle SnatchHandle(DialogPtr thebox, short theGetItem);
- Boolean IsEditKey(char theKey, short modifiers);
- short HasSelectionRange(DialogPeek inputDialog);
- pascal Boolean filterIt(DialogPtr inputDialog, EventRecord *myDialogEvent, short *theDialogItem);
- Boolean TabRetEsc(DialogPtr inputDialog, EventRecord *myDialogEvent, short *theDialogItem);
- pascal Boolean standardAlertFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit);
- pascal Boolean standardDialogFilter(DialogPtr theDialog, EventRecord *theEvent, short *itemHit);
- void GetAResourceType(WindowPtr theWindow);
- void SendInfoEvent(ResType theType, Boolean quit, WindowPtr theWindow);
- void SayError(long longErr);
- void ActivateMain(WindowPtr theWindow,Boolean activate);
-
- void NilProc(void);
-
-
-
- /* These are the new Dialog Manager calls described in Tech note #304 */
- /* ONLY used if System 7 or later, of course */
- pascal OSErr GetStdFilterProc(ModalFilterProcPtr *theProc) =
- {
- 0x303C, 0x0203, 0xAA68
- };
-
-
-
-
- /* Indicates to the dialog manager which item is default. Will then alias the return key */
- /* to this item, and also bold border it for you (yaaaaa!) */
- pascal OSErr SetDialogDefaultItem(DialogPtr theDialog, short newItem)
- =
- {
- 0x303C, 0x0304, 0xAA68
- };
-
-
-
-
- /* Indicates which item should be aliased to escape or Command - . */
- pascal OSErr SetDialogCancelItem(DialogPtr theDialog, short newItem)
- =
- {
- 0x303C, 0x0305, 0xAA68
- };
-
-
-
-
- /* Tells the dialog manager that there is an edit line in this dialog, and */
- /* it should track and change to an I-Beam cursor when over the edit line */
- pascal OSErr SetDialogTracksCursor(DialogPtr theDialog, Boolean tracks) =
- {
- 0x303C, 0x0306, 0xAA68
- };
-
-
- #endif /* included */